import service from './request'

// 创建 API 实例
const createAPI = (url, method, config = {}) => {
  return service({
    url,
    method,
    ...config
  })
}

export default createAPI
